package o;

import com.huawei.appgallery.appcomment.impl.bean.CommentReportResBean;
import com.huawei.appgallery.foundation.account.bean.UserSession;
import java.security.SecureRandom;

public class bcy extends cvs {
    private static final String APIMETHOD = "client.jgw.forum.report";
    public static final String COMMENT_DATAID = "rid";
    public static final int COMMENT_TYPE = 10;
    public static final String REPLY_DATAID = "rrid";
    public static final int REPLY_TYPE = 11;
    private String clientVersionCode_;
    private String clientVersionName_;
    private String dataId_;
    private int dataType_;
    private String deliverRegion_;
    private String locale_;
    private String remark_;
    private String reportTypes_;
    private String requestId_ = Long.toString(ˊ(8));
    private String serviceToken_;

    static {
        cfw.ˊ("client.jgw.forum.report", CommentReportResBean.class);
    }

    private long ˊ(long j) {
        long j2 = 1;
        long j3 = 9;
        for (int i = 1; ((long) i) < j; i++) {
            j2 *= 10;
            j3 *= 10;
        }
        return ((long) (new SecureRandom().nextDouble() * ((double) (j3 - j2)))) + j2;
    }

    public bcy(int i, String str, String str2, String str3) {
        setMethod_("client.jgw.forum.report");
        this.dataType_ = i;
        this.reportTypes_ = str;
        this.remark_ = str2;
        this.dataId_ = str3;
        this.clientVersionCode_ = String.valueOf(ber.ॱ());
        this.clientVersionName_ = ber.ˊ();
        this.locale_ = doi.ॱ();
        this.deliverRegion_ = eqp.ॱ();
        UserSession instance = UserSession.getInstance();
        if (instance != null) {
            this.serviceToken_ = instance.getServiceToken();
        }
        this.targetServer = "jgw.url";
        setStoreApi("client-appgallery");
    }

    public String getLocale_() {
        return this.locale_;
    }

    public void setLocale_(String str) {
        this.locale_ = str;
    }
}
